﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Cricket.LinqModel
{
    public sealed class SessionManager
    {
        private SessionManager() { }
        public static LoggedInUser CurrentUser
        {
            get
            {

                if (HttpContext.Current.Session["CurrentUser"] == null)
                    return null;
                else
                    return (LoggedInUser)HttpContext.Current.Session["CurrentUser"];
            }
            set
            {
                HttpContext.Current.Session["CurrentUser"] = value;
            }
        }
    }
}
